package org.jeecg.modules.wlhy.gas.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wlhy.gas.entity.HyShippingNoteGas;

/**
 * @Description: hy_shipping_note_gas
 * @Author: jeecg-boot
 * @Date:   2021-08-14
 * @Version: V1.0
 */
public interface IHyShippingNoteGasService extends IService<HyShippingNoteGas> {

    HyShippingNoteGas getByShippingId(String shippingId);

    boolean checkDriverNameExist(String driverId);

    HyShippingNoteGas getByIdForUpdate(String id);

    HyShippingNoteGas getByShippingIdForUpdate(String shippingId);

    IPage<HyShippingNoteGas> getPageList(Page<HyShippingNoteGas> page, QueryWrapper<HyShippingNoteGas> queryWrapper);

    //检查是否充值完成
    boolean checkRecharge(HyShippingNoteGas shippingNoteGas);
}
